package com.footballretriever.data;

import com.footballretriever.datasource.PlayerDAO;

public class Player {

	private String id;
	private String name;
	private String birthdate;
	private String nationality;
	private String height;
	private String weightNormal;
	private String birthplace;
	private String role;
	private PlayerSeason playerSeason;
	
	public Player(String id, String name, String birthdate, String nationality) {
		
		this.id = id;
		this.name = name;
		this.birthdate = birthdate;
		
	}
	
	public String getId() {
		return id;
	}
	
	public String getName() {
		return name;
	}
	
	public String getBirthdate() {
		return birthdate;
	}

	public String getNationality() {
		return nationality;
	}

	public String getHeight() {
		return height;
	}

	public String getWeightNormal() {
		return weightNormal;
	}

	public String getBirthplace() {
		return birthplace;
	}

	public String getRole() {
		return role;
	}
	
	public void save(PlayerDAO dao) {
		
		dao.SavePlayer(this);
		
	}

	public PlayerSeason getPlayerSeason() {
		return playerSeason;
	}

	public void setPlayerSeason(PlayerSeason playerSeason) {
		this.playerSeason = playerSeason;
	}
	
}
